import '../index.dart';

class CatgaryRoute extends StatefulWidget {
  @override
  _CatgaryRouteState createState() => _CatgaryRouteState();
}

class _CatgaryRouteState extends State<CatgaryRoute> {
  @override
  void initState() {

    super.initState();
  }

  var titles = ['全部收藏','冲冲冲','惊雷','紫电锤'];

  Widget build(BuildContext context) {

    return  ListView.builder(
      padding: const EdgeInsets.all(0.0),
      itemExtent: 50,
      itemCount: titles.length,
      itemBuilder: (BuildContext context, int index) {
        return ListTile(
          leading: Icon(Icons.dock),
          title:  Text(titles[index]),
          onTap: () => {
            Navigator.pushNamed(context, 'bookmarks')
          },
        );
      },

    );
  }
}
